﻿@using Microsoft.AspNet.Identity
<div class="easyui-accordion">
    <div title="个人管理">
        <ul id="navmenu" class="nav nav-pills nav-stacked">
            <li> <a href="javascript:void()" data-options="'icons':'icon-user','title': '用户列表', 'href': '@Url.Action("Index", "Account", new { id = User.Identity.name })'"><span class="glyphicon glyphicon-user"> 用户列表</span></a></li>
            <li> <a href="javascript:void()" data-options="'icons':'icon-key','title': '修改密码', 'href': '@Url.Action("Manage", "Account")'"><span class="glyphicon glyphicon-check"> 修改密码</span></a></li>
            <li> <a href="@Url.Action("LogOff")"><span class="glyphicon glyphicon-log-out"> 退出登录</span></a></li>
        </ul>
    </div>
</div>
<script type="text/javascript">
    $("#navmenu a").click(function () {
        var optstr = "{" + $(this).attr("data-options") + "}";
        optstr = optstr.replace(/'/g, "\"");
        var opts = $.parseJSON(optstr);
        addTab(opts.title, opts.href, opts.icons);
        return false;
    })
</script>